package org.tong.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import org.tong.bean.Config;

@Repository
public class ConfigDao {

    @Autowired
    private JdbcTemplate jdbcTemplate;


    public int insert(Config config) {
        return jdbcTemplate.update("insert into t_config(remark, create_time, last_modify_time)values(?,?,?)", config.getRemark(), config.getCreateTime(), config.getLastModifyTime());
    }

}
